package com.dsg.entity.apply;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * DDA設立記錄
 * </p>
 *
 * @author system
 * @since 2020-10-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_apply_dda")
@ApiModel(value="DsgApplyDda对象", description="DDA設立記錄")
public class DsgApplyDda implements Serializable {
    /**未落銀行*/
    public static final int DDA_STATUS_NOT_RECORD = 0;
    /**已落銀行*/
    public static final int DDA_STATUS_RECORD = 1;
    /**失敗*/
    public static final int DDA_STATUS_FAIL = 2;
    /**成功*/
    public static final int DDA_STATUS_SUCCESS = 3;

    /**失效*/
    public static final int EAB_STATUS_UNEFFECT = 0;
    /**生效*/
    public static final int EAB_STATUS_EFFECT = 1;

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主鍵")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "申请类型")
    @TableField("APP_TYPE")
    private Integer appType;

    @ApiModelProperty(value = "繳款帳號主鍵")
    @TableField("PAY_ID")
    private String payId;

    @ApiModelProperty(value = "狀態")
    @TableField("DDA_STATUS")
    private Integer ddaStatus;

    @ApiModelProperty(value = "生效狀態")
    @TableField("EAB_STATUS")
    private Integer eabStatus;

    @ApiModelProperty(value = "記錄匯總")
    @TableField("NEW_NUM")
    private Integer newNum;

    @ApiModelProperty(value = "操作匯總")
    @TableField("OPT_NUM")
    private Integer optNum;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "創建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "創建時間")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新時間")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "客戶編號")
    @TableField(exist = false)
    private String cusNo;

    @ApiModelProperty(value = "客戶名稱")
    @TableField(exist = false)
    private String cnName;

    @ApiModelProperty(value = "銀行名稱")
    @TableField(exist = false)
    private String payAccountName;

    @ApiModelProperty(value = "銀行戶口")
    @TableField(exist = false)
    private String payAccountNo;

    @ApiModelProperty(value = "收款賬戶")
    @TableField(exist = false)
    private String accountNo;

    @ApiModelProperty(value = "DDA日期開始時間")
    @TableField(exist = false)
    private String downloadTimeStart;

    @ApiModelProperty(value = "DDA日期結束時間")
    @TableField(exist = false)
    private String downloadTimeEnd;

    @ApiModelProperty(value = "結果日期開始時間")
    @TableField(exist = false)
    private String uploadTimeStart;

    @ApiModelProperty(value = "結果日期結束時間")
    @TableField(exist = false)
    private String uploadTimeEnd;

    @ApiModelProperty(value = "扣款/支付限制")
    @TableField(exist = false)
    private BigDecimal payLimit;

    @ApiModelProperty(value = "扣款周期")
    @TableField(exist = false)
    private String prdty;

    @ApiModelProperty(value = "銀行戶口集合")
    @TableField(exist = false)
    private String payAccountNos;

    @ApiModelProperty(value = "繳款資料OID")
    @TableField(exist = false)
    private String payOid;

    @ApiModelProperty(value = "次數")
    @TableField(exist = false)
    private String newAndOptNum;

    @ApiModelProperty(value = "節點配置名稱")
    @TableField(exist = false)
    private String nodeName;

    @ApiModelProperty(value = "到期日期")
    @TableField(exist = false)
    private Date expiryDate;

    @TableField(exist = false)
    private String userId;
}
